package xin.ssm.jxc.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import xin.ssm.jxc.model.Depots;
import xin.ssm.jxc.services.IDepotService;

@Controller
@RequestMapping("/depot")
public class DepotController {
	@Resource
	private IDepotService depotService;
	
	@RequestMapping("/finddepot")
	@ResponseBody
	public List<Depots> findDepot() {
		List<Depots> list = depotService.findAllDepot();
		return list;
	}
}
